package com.easylinkin.sm.constant;

import lombok.experimental.UtilityClass;

/**
 * 用户属性
 *
 * @author timely-rain
 * @since 0.1.1, 2019/1/20
 */
@UtilityClass
public class UserConstant {

  /**
   * 附加数据
   */
  @UtilityClass
  public class Attach {

    /**
     * 关键字
     */
    public static final String KEYWORD = "keyword";

    /**
     * 按组织机构过滤
     */
    public static final String FILTER_DEPARTMENT_ID = "filterDepartmentId";
  }

  /**
   * 数据
   */
  @UtilityClass
  public class Data {

    /**
     * 显示状态
     */
    public static final String DISPLAY = "display";

    /**
     * 用户信息
     */
    public static final String INFO = "info";
    /**
     * 权限码
     */
    public static final String PRIVILEGES = "privileges";
  }

  /**
   * 异常消息常量
   *
   * @author TianGanLin
   * @since 0.1.1, 2019/4/19
   */
  @UtilityClass
  public class Error {

    /**
     * 删除机构异常
     */
    public static final String DELETE_DEPARTMENT = "user.delete-department";

    /**
     * 删除角色异常
     */
    public static final String DELETE_ROLE = "user.delete-role";

    /**
     * 管理员密码错误
     */
    public static final String MANAGER_SECRET_IS_WRONG = "user.manager-password-is-wrong";

    /**
     * 密码错误
     */
    public static final String SECRET_IS_WRONG = "user.password-is-wrong";

    /**
     * 原始密码错误
     */
    public static final String ORIGINAL_SECRET_IS_WRONG = "user.originalPassword-is-wrong";

    /**
     * 密码确认失败
     */
    public static final String SECRET_CONFIRM_FAILURE = "user.password-confirm-failure";

    /**
     * 新密码与旧密码一样
     */
    public static final String SECRET_REPEAT = "user.password-repeat";

    /**
     * 用户不存在
     */
    public static final String USER_NO_FOUND = "user.user-no-found";

    /**
     * 用户不存在(忘记密码)
     */
    public static final String FORGET_USER_NO_FOUND = "user.forget-user-no-found";

    /**
     * 用户名与手机号不匹配
     */
    public static final String USERNAME_NOT_MATCH_PHONE = "user.user-phone-mismatch";

    /**
     * 验证码获取失败
     */
    public static final String CAPTCHA_ACQUISITION_FAILED = "user.verification-get-fail";

    /**
     * 图片验证码不匹配
     */
    public static final String IMAGE_VERIFICATION_CODE_NOT_MATCH = "user.img-verification-mismatch";

    /**
     * 请输入用户信息
     */
    public static final String PLEASE_ENTER_USER_INFORMATION = "user.information-not-found";

    /**
     * 短信验证码不匹配
     */
    public static final String SMS_VERIFICATION_CODE_NOT_MATCH = "user.sms-verification-mismatch";

    public static final String IMG_NOT_FOUND = "user.img-not-found";

    /**
     * 账号重复
     */
    public static final String ACCOUNT_REPEAT = "user.account-repeat";

    /**
     * 用户编号不能为空
     */
    public static final String USER_NUMBER_NOT_NULL = "user.number-not-null";
  }

  /**
   * 函数相关
   */
  @UtilityClass
  public class Functions {

    /**
     * 标签：重置密码
     */
    public static final String TAG_RESET = "reset";
  }

}
